#!/usr/bin/env python3
'''
Author: Paschalis Agapitos
Project: Mestizajes

Defines a shared colorblind-friendly color palette
following the Okabe Ito style and used consistently across
all project visualizations, and provides a utility function to apply it as
the default seaborn palette and context for publication-ready figures.
'''

import seaborn as sns

# Define your custom palette
colorblind_palette = [
    "#117733",
    "#332288",  
    "#DDCC77",  
    "#CC6677",  
    "#88CCEE",  
    "#AA4499",  
    "#44AA99",  
    "#999933",  
    "#882255",  
    "#661100",  
    "#6699CC",  
    "#888888",  
    "#F0E442",  
    "#D55E00",  
]

def set_palette():
    """Apply the custom palette and seaborn context."""
    sns.set_palette(colorblind_palette)
    sns.set_context("paper")